<?php
include "../../shared/lan.php"
?>


<?php

include "../../shared/head.php";

?>

<?php

include "../../shared/config.php";

?>	
<?php

include "../../shared/navbar2.php";
$ID = $_GET['id'];
$clan = $_GET['clan'];
if($clan == "zh"){
$sql = "SELECT * FROM em WHERE em_id LIKE '$ID'";
}
else{
$sql = "SELECT * FROM em_en WHERE em_id LIKE '$ID'";
}
$result = mysqli_query($conn,$sql);
while($row = mysqli_fetch_array($result, MYSQLI_ASSOC))
{
	$em_n = $row["company_name"];
	$em_d = $row["detail"];
	$em_c = $row["contact"];
}
?>
<style>
</style>
<div class="container">
   <div class="row">
      <div class="col-md-12">
		<div class="col-md-2">
		</div>

		<div class="col-md-8">
			<form method="POST" action="../../action/boss/fileedit.php?id=<?php echo $ID."&&clan=".$clan ?>" >			
				<div class="input-group">
				 <h2>编辑信息</h2>
				 </br>
				 <div class="input-group">
					<span class="input-group-addon">公司名称</span>
					<textarea class="form-control" rows="1" cols="100" name="company_name" value="">
<?php echo $em_n; ?>
</textarea>
				</div>	
				<br>
				<div class="input-group">
					<span class="input-group-addon">详细信息</span>
					
					<textarea class="form-control" rows="5" name="detail" ><?php echo $em_d; ?></textarea>
				</div>					
				<br>
				<div class="input-group">
					<span class="input-group-addon">联系方式</span>
					<textarea class="form-control" rows="1" name="contact" ><?php echo $em_c; ?></textarea>
				</div>	
				</br>
				<div class="input-group">
					<button class="btn btn-primary" type="submit">确定</button>
				</div>					
			</form>		
		</div>

		<div class="col-md-2">
		</div>		
	  
	  </div>
    
   </div>

</div>		


</body>
</html>